package com.vhall.component.entity.chat.vo;


import com.vhall.component.framework.common.annotation.ParamName;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import java.io.Serializable;


/**
 * @author xianglei
 * @date 2021/5/10 14:25
 */

@Data
public class MessageListsReqVo implements Serializable {
    private static final long serialVersionUID = -8479789118929849941L;

    @NotBlank(message = "参数异常")
    @ParamName("channel_id")
    private String channelId;

    @NotNull(message = "参数异常")
    @ParamName("third_party_user_id")
    private Integer thirdPartyUserId;


    @NotBlank
    @Pattern(regexp = "(pc_browser)|(h5_browser)|(android)|(ios)|(desktop)|(wechat_browser)|(wechat_applet)", message = "参数值异常")
    private String client;

    @NotBlank(message = "参数异常")
    @ParamName("start_time")
    private String startTime;

    @ParamName("msg_type")
    private String msgType;

    @ParamName("page")
    private Integer currPage;

    @ParamName("page_size")
    private Integer pageSize;

}
